package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class NormalizedPredicate implements Predicate {

    private int beginIndex;
    private int endIndex;
    private StringValueExpression stringValueExpression;
    private boolean not;

    public NormalizedPredicate(int endIndex, StringValueExpression stringValueExpression, boolean not) {
        this.beginIndex = stringValueExpression.getBeginIndex();
        this.endIndex = endIndex;
        this.stringValueExpression = stringValueExpression;
        this.not = not;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public StringValueExpression getStringValueExpression() {
        return stringValueExpression;
    }

    public boolean isNot() {
        return not;
    }

}
